import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login/login',
    method: 'post',
    data
  })
}


export function getInfo(token) {
  return request({
    url: '/user/getInfo',
    method: 'get',
    params: { token }
  })
}

export function homepageOverview(data) {
  return request({
    url: '/user/homepageOverview',
    method: 'get',
    params: data
  })
}


export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}

export function invoice(data) {
  return request({
    url: '/user/invoice',
    method: 'post',
    data
  })
}

